<%@page import="itsm.isperp.framework.core.context.ContextHolder"%>
<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%
	String path = request.getContextPath();
	String basePath = ContextHolder.getWebServerName(request);
%>
<script type="text/javascript" src="<%=basePath%>js/libs/jqmeter.min.js"></script>
<isperp:taskView readonly="true">
	<jsp:body>

<div clsss="box no-border">

	<table class="form-table">
		<tbody>
			<tr>
				<td class="td1">项目名称：</td>
				<td class="td2"><isperp:relationLabel
								moduleUrl="project/project" idValue="${model.projectId }"
								displayColumn="name" id="projectName"></isperp:relationLabel>
						</td>
			</tr>
			<tr>
				<td class="td1">任务名称：</td>
				<td class="td2">${model.name }</td>
			</tr>
			<tr>
				<td class="td1">项目阶段：</td>
				<td class="td2">${model.projectStage }</td>
			</tr>
			<tr>
				<td class="td1">优先级：</td>
				<td class="td2">${model.priority }</td>
			</tr>
			<tr>
				<td class="td1">负责人：</td>
				<td class="td2">${model.planPrincipalName }</td>
			</tr>

			<tr>
				<td class="td1">计划执行时间：</td>
				<td class="td2"><fmt:formatDate value="${model.planStartTime}"
								pattern="yyyy-MM-dd HH:mm" /> 至 <fmt:formatDate
								value="${model.planEndTime}" pattern="yyyy-MM-dd HH:mm" />
						</td>
			</tr>
			<tr>
				<td class="td1">消耗工时(h)：</td>
				<td class="td2">${model.actTimes }</td>
			</tr>
			<tr>
				<td class="td1">任务目标：</td>
				<td class="td2">${model.target }</td>
			</tr>
			<tr>
				<td class="td1">任务内容：</td>
				<td class="td2">${model.content }</td>
			</tr>
			<tr>
				<td class="td1">交付标准：</td>
				<td class="td2">${model.deliverables }</td>
			</tr>
		</tbody>
	</table>
</div>
<div clsss="box no-border">
	<div class="header">
		<h3>&nbsp;&nbsp;处理信息</h3>
	</div>
	<table class="form-table">
		<tbody>


           <c:if test="${not empty model.inspectTemplateDefId }">
			<tr>

				<td class="td1">巡检项：</td>
				<td class="td2">
					<isperp:inspectTemplate defId="${model.inspectTemplateDefId }"
								taskId="${model.id }" readonly="true"></isperp:inspectTemplate>
				</td>
			</tr>
			</c:if>
			<tr>
				<td class="td1">是否完成：</td>
				<td class="td2"><c:choose>
						<c:when test="${model.finished eq true  }">是</c:when>
						<c:otherwise>否</c:otherwise>
					</c:choose>
						</td>

			</tr>
			<tr>
				<td class="td1">实际执行时间：</td>
				<td class="td2">${model.actStartTime}至${model.actEndTime}</td>
			</tr>
			<tr>
				<td class="td1">工时消耗(h)：</td>
				<td class="td2">${model.actTimes}</td>
			</tr>
			<tr>
				<td class="td1">处理人：</td>
				<td class="td2">${model.actPrincipalName }</td>
			</tr>
			<tr>
				<td class="td1">处理情况：</td>
				<td class="td2">${model.handleDesc }</td>
			</tr>
			<tr style="display:none">
				<td class="td1">处理成本：</td>
				<td class="td2"><isperp:projCostAccountingEntry
								relationId="${model.id }" projectId="${model.projectId}"
								readonly="true"></isperp:projCostAccountingEntry>
						</td>
			</tr>
			<tr>
				<td class="td1">附件：</td>
				<td class="td2"><isperp:uploader sourceId="${model.id }"
								id="taskFiles"></isperp:uploader>
						</td>
			</tr>

		</tbody>
	</table>

</div>


</jsp:body>
</isperp:taskView>
<isperp:buttonList>
	<isperp:processButtons businessKey="${model.id }" 
		processKey="taskProcess" processId="${model.processId }"></isperp:processButtons>
</isperp:buttonList>